package com.ptu.spzx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ptu.spzx.domain.file.Dto.FileDTO;
import com.ptu.spzx.domain.file.File;
import com.ptu.spzx.model.vo.common.Result;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author YT
 * @since 2024-01-28
 */
public interface IFileService extends IService<File> {

    Result upload(FileDTO fileDTO) throws IOException;

    void download(String fileName, HttpServletResponse response) throws IOException;
}
